package com.uinfor.service.impl;

import com.uinfor.dao.IPaymentDao;
import com.uinfor.entity.Payment;
import com.uinfor.service.IPaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @descripttion:
 * @Author: WZH
 * @Date :2021/1/18  9:48
 **/
@SuppressWarnings("all")
@Service
public class PayMentServiceImpl implements IPaymentService {
    @Autowired(required = false)
    private IPaymentDao paymentDao;
    @Override
    public int create(Payment payment) {

        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
